#!/usr/bin/env python
# -*- coding:UTF-8 -*-
from django.http import HttpResponse, HttpResponseRedirect, StreamingHttpResponse
from django.shortcuts import render, render_to_response
from django.template import RequestContext
from django import forms

import sys
import traceback
import logging
import cgi,cgitb
from os import environ
from string import strip,split
import datetime,time
import MySQLdb
import base64
import socket
from struct import *
import ctypes
import json
import hashlib
import os

import web_XZDQ_V1_0.MySQLDB as MySQLDB

# Create your views here.

def index(request):
    return render(request, "test.html", {})

def OpenWindow(request):
    diseaseId = request.GET.get("diseaseId", 0)
    memberId = request.GET.get("memberId", 0)
    dictPosition = []
    dictAttr = []
    return render(request, "openWindow.html", {"position": dictPosition, "attr": dictAttr})